// 开卡员端接口
import request from "@/service/request";
// 下载
export function down(params) {
    return request({
        url: `/opencard/get/poi`,
        method: "get",
        params
    });
}
// 历史订单
export function getOrder(data) {
    return request({
        url: `/opencard/get/orders/all`,
        method: "POST",
        data
    });
}
// 开卡
export function activeCard(data) {
    return request({
        url: `/opencard/management/card`,
        method: "POST",
        data
    });
}

// 开卡历史
export function getActiveCardList(params) {
    return request({
        url: `/opencard/get/open/history`,
        method: "GET",
        params
    });
}
// export function getActiveCardList(data) {
//     return request({
//         url: `/opencard/get/open/history`,
//         method: "POST",
//         data
//     });
// }

// 开卡日期
export function getActiveCardDateList() {
    return request({
        url: `/opencard/get/history/date`,
        method: "GET"
    });
}

// 单激活卡
export function activeCardTwice(data) {
    return request({
        url: `/opencard/activation/card`,
        method: "POST",
        data
    });
}

// 批量激活卡
export function activeCardTwiceMore(data) {
    return request({
        url: `/opencard/batch/activation/card`,
        method: "POST",
        data
    });
}

// 打印卡单
export function getCardExcel(data) {
    return request({
        url: `/opencard/get/excel`,
        method: "POST",
        type: 'download',
        data
    });
}

// 获取卡下订单
export function getCardOrder(data) {
    return request({
        url: `/opencard/get/order`,
        method: "POST",
        data
    });
}

// 查看物流
export function getGo(params) {
    return request({
        url: `/opencard/get/logistics`,
        method: 'GET',
        params
    })
}
